package cn.itsource.org.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class TShop {
  //在实体类中，定义专属于这个实体类的常量
  public static final Long STATE_DAISHENGHE = 0L;
  public static final Long STATE_ZHENGCHANG = 1L;
  public static final Long STATE_GUANBI = 2L;

  private Long id;
  private String name;
  private String tel;
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date registerTime;
  private Long state;
  private String address;
  private String logo;
  private Long adminId;
  //添加一个属性---关联的管理员的属性
  private TEmployee admin;

}
